#注意：ccchenji是我系统的用户名，这里要换成你的系统的用户名。
#IPATH=-I/home/szy/Desktop/gsl_gcc/include
#LPATH=-L/home/ccchenji/Desktop/gsl_gcc/lib
#这里直接链接的静态库文件
main:main.cpp EqualJacobiMatrix.cpp EqualHeisenMatrix.cpp InequalJacobiMatrix.cpp GradsMatrix.cpp GradsHeisenMatrix.cpp PLoss_Calculation.cpp  Power_Calculation.cpp Form_IPM_data16.cpp RE_IEEE14_data.cpp FormGB_former.cpp ModifyNodeValue.cpp v14.cpp LoadData.cpp readcsv.cpp build_table.cpp
#gcc main.c $(IPATH)  $(LPATH) -l:libgsl.a -l:libgslcblas.a -o main
	g++ -g main.cpp EqualJacobiMatrix.cpp EqualHeisenMatrix.cpp InequalJacobiMatrix.cpp GradsMatrix.cpp GradsHeisenMatrix.cpp PLoss_Calculation.cpp Power_Calculation.cpp Form_IPM_data16.cpp RE_IEEE14_data.cpp FormGB_former.cpp ModifyNodeValue.cpp v14.cpp LoadData.cpp readcsv.cpp build_table.cpp -l:libgsl.a -l:libgslcblas.a -o main

.PHONY:clean
clean:
	rm -rf main                       
